package com.msa.msaportal.common.web;

import java.rmi.RemoteException;

import com.mgear.ldap.service.LDAPDataServiceProxy;

public final class MsaJsonUntil {
	
	/**
	 * 根据用户id获取ldap用户详细信息json
	 * @param userId
	 * @return
	 * @throws RemoteException
	 */
	public static String getJsonByUserId(String userId) throws RemoteException{
		
		String ujson = "{'userId':'"+userId+"','isQueryRoles':'1','isQueryorgs':'1','isQueryDepts':'1','pageSize':'10','currentPage':'1'}";
		LDAPDataServiceProxy lsp = new LDAPDataServiceProxy();
		
		String udjson = lsp.userQueryServices_userQuery4Detail(ujson);
		return udjson;
	}
	
	
	

}
